<?php

class SuppliersForm extends CFormModel {

	public $userName;
	public $userPhone;
	public $userFamily;
	public $userEmail;
	public $vacancyUrl;
	public $resume;
        public $userCompany;
        public $note;

        /**
	 * Declares the validation rules.
	 * The rules state that username and userPhone are required,
	 * and password needs to be authenticated.
	 */
	public function rules() {
		return array(
			array('userName, userEmail', 'required'),
			array('vacancyUrl', 'url', 'defaultScheme' => 'http'),
			array('userName, userPhone, userFamily, userEmail, vacancyUrl, userCompany, note', 'default'),
			array('userEmail', 'email'),
			//array('resume', 'file', 'allowEmpty' => true, 'types' => 'doc,docx,rtf,txt,xls,xlsx,rar,zip,tar'),
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels() {
		return array(
		);
	}

}
